﻿mainModule.controller("editCtrl", ["$scope", "userSvc", "$controller", function ($scope, apiSvc, $controller) {
    "use strict";
    // instantiate base controller    
    $controller('BaseEditCtrl', { $scope: $scope, apiSvc: apiSvc });

    $scope.$on('itemAdding', function (e, id) {
        $scope.showPasswordField = true;
    });
    $scope.$on('itemEditing', function (e, id) {
        $scope.showPasswordField = false;
    });   
}]);